package com.xuecheng.content.feignclient;

import com.xuecheng.content.model.po.CourseIndex;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/3/25 0:02
 */
@FeignClient(value = "search", fallbackFactory = SearchServiceClientFallbacFactory.class)
public interface SearchServiceClient {

    @ApiOperation("添加课程索引")
    @PostMapping("search/index/course")
    Boolean add(@RequestBody CourseIndex courseIndex);
    
}
